package com.shangxian.giveithome.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class AdoptionCreate {

    /****/
    @NotNull(message = "宠物id不能为空")
    private Long petId;

    /**真实姓名**/
    @NotBlank(message = "真实姓名不能为空")
    private  String  name;

    /**联系电话**/
    @NotBlank(message = "联系电话不能为空")
    private  String  phone;

    /**备用电话**/
    @NotBlank(message = "备用电话不能为空")
    private  String  standbyPhone;

    /**省级地址**/
    @NotBlank(message = "省级地址不能为空")
    private  String  province;

    /**市级地址**/
    @NotBlank(message = "市级地址不能为空")
    private  String  city;

    /**县级地址**/
    @NotBlank(message = "县级地址不能为空")
    private  String  county;

    /**详细地址**/
    @NotBlank(message = "详细地址不能为空")
    private  String  address;

    /**协议角色：1：送养人，2：领养人**/
    @JsonIgnore
    private  Integer  role;

    /**
     * 图片id
     */
    @NotNull(message = "图片id不能为空")
    private Long imgId;

    /**
     * 领养关联数据
     */
    @JsonIgnore
    private Adoption adoption;
}
